enum StatusType {
  Disposed = '3',
  Disposing = '2',
  Default = '1'
}

export const getAlarmStatusCode = (name: string): StatusType => {
  switch (name) {
    case '已处置':
      return StatusType.Disposed;
    case '处置中':
      return StatusType.Disposing;
    default:
      return StatusType.Default;
  }
};
